package com.kakaxi.mybilibili.module.home.advice.model;

import com.alibaba.fastjson.JSONObject;
import com.kakaxi.mybilibili.common.WebUrlConst;
import com.kakaxi.mybilibili.net.FastJsonCacheRequest;
import com.kakaxi.mybilibili.net.Netroid;
import com.vincestyling.netroid.Listener;

/**
 * 推荐主页面数据层实现类
 * Created by kakaxi on 16/11/20.
 */

public class AdviceHomeModel implements IAdviceHomeModel {

    @Override
    public void getAdviceHomeBannerData(Listener<JSONObject> listener) {
        Netroid.addRequest(new FastJsonCacheRequest(WebUrlConst.adviceHomeBannerUrl, null,
                listener, null), true);
    }

    @Override
    public void getAdviceHomeListData(Listener<JSONObject> listener) {
        Netroid.addRequest(new FastJsonCacheRequest(WebUrlConst.adviceHomeListUrl, null,
                listener, null), true);
    }
}
